package com.information.manage.basic.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("sys_menu")
@ApiModel(value="SysMenuDO对象", description="")
public class SysMenuDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("权限名称")
    private String name;

    @ApiModelProperty("父权限id")
    private Integer parentId;

    @ApiModelProperty("类型 0 menu 1 add 2 delete 3 update 4 query")
    private Integer type;

    @ApiModelProperty("描述")
    private String description;

    @ApiModelProperty("是否必须 true: 必须 ; false:非必须")
    private Boolean must;

    @ApiModelProperty("是否隐藏 动态路由规则使用 默认false true：隐藏 false： 显示")
    private Boolean hide;

    @ApiModelProperty("路由")
    private String route;

    @ApiModelProperty("图标")
    private String icon;

    @ApiModelProperty("生成时间")
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    private LocalDateTime updateTime;

}
